FROM golang:alpine
WORKDIR /go/src/gitee.com/pippozq/rancher-exporter
ENV RANCHER_FILE config/rancher.yml
COPY . .
RUN go build
EXPOSE 19100
ENTRYPOINT ["/go/src/gitee.com/pippozq/rancher-exporter/rancher-exporter"]